package com.rfid.emergencywarehouse.fragment;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.navigation.fragment.NavHostFragment;

import com.rfid.base.base.BaseListFragment;
import com.rfid.emergencywarehouse.R;
import com.rfid.emergencywarehouse.adapter.OrderAdapter;
import com.rfid.emergencywarehouse.entity.Order;
import com.rfid.emergencywarehouse.presenter.ShelfingWithOrderPresenter;

import butterknife.ButterKnife;

public class ShelfingWithOrderMainFragment extends OrderListFragment {

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        setTitle("有单上架");
    }

    @Override
    public void onClick(Order order) {
        super.onClick(order);
        Bundle bundle = new Bundle();
        bundle.putString("kf",order.getToWorkAreaName());
        bundle.putString("orderId",order.getId() + "");
        bundle.putString("orderNo",order.getOriginOrderNo());
        bundle.putString("toWorkAreaId",order.getToWorkAreaId());
        NavHostFragment.findNavController(this).navigate(R.id.action_groudingWithOrderMainFragment_to_groundingWithOrderFragment,bundle);
    }

}
